import React, { Component } from 'react'
import { Switch, Route, Redirect } from 'react-router-dom'
import CategoryMgt from './CategoryMgt'
import GoodsMgt from './GoodsMgt'

export default class Commodity extends Component {
  render() {
    return (
      <div>
        <Switch>
          <Route path="/commodity/categorymgt" component={CategoryMgt}></Route>
          <Route path="/commodity/goodsmgt" component={GoodsMgt}></Route>
          <Redirect to="/home" />
        </Switch>
      </div>
    )
  }
}
